<template>
  <div class="date-tip">
    <header>{{ label }}</header>
    <div class="tip-container">
      <span>{{ value }}</span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    label: {
      type: String,
      default: ""
    },
    value: {
      type: [String, Number],
      default: 0
    }
  }
};
</script>

<style lang="scss" scoped>
.date-tip {
  margin: 10px 16px;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  header {
    height: 30px;
    line-height: 30px;
    background-color: #7878f4;
    text-align: center;
    color: #fff;
    font-size: 16px;
  }
  .tip-container {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 54px;
    color: #4D576C;
  }
}
</style>
